import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    {
      path: "/",
      redirect: '/index'
    },
    {
      path: "/index",
      component: () => import("./view/index.vue"),
    },
    {
      path: "/chuang",
      component: () => import("./view/chuang.vue"),
    },
  ],
});

export default router;
